-
Notifications
You must be signed in to change notification settings - Fork 1.7k
add support for Preselection element #4790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for Preselection element #4790
Conversation
|
Related issue: #4513 |
dsilhavy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @stschr I added my review. Additional question:
only "SRMP"; "MRMP" are considered "not supported"
What is meant by SRMPand MRMP
Are Preselection Descriptors relevant for this PR?
| } | ||
|
|
||
| function _createConfiguration(type, rep, codec) { | ||
| function _createConfiguration(type, rep, codec, prsl_rep) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use camel case instead of underscore notation
| } | ||
|
|
||
| function _createVideoConfiguration(rep, codec) { | ||
| function _createVideoConfiguration(rep, codec, prsl_rep) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use camel case instead of underscore notation
7f6b8ed to
fd1312d
Compare
|
@stschr I think you are still working on this PR right? |
No further work is planned for this. Let me rebase... |
c9cb90d to
fd3f122
Compare
src/core/Settings.js
Outdated
| * - Constants.TRACK_SWITCH_MODE_NEVER_REPLACE | ||
| * Do not replace existing segments in the buffer | ||
| * | ||
| * @property {} [includePreselectionsInMediainfo: true] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that makes it much clearer. I suggest we rename this attribute to includePreselectionsInMediainfoArray. That makes it clearer that the Preselections are an additional entry in the array.
src/dash/models/DashManifestModel.js
Outdated
| return adaptation && adaptation.Representation && adaptation.Representation.length > 0 ? adaptation.Representation[0].mimeType : null; | ||
| } | ||
|
|
||
| function getMimeTypeForPreselection(preselection, adaptations) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this function? I don't see any usages of it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above (see getIsTextForPreselection())
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to remove it at this stage, as it is not (yet) used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, done.
| */ | ||
| class Preselection { | ||
| constructor() { | ||
| this.period = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, 6th edition specifies: id: default=1
b7b5e5f to
9bcb4f3
Compare
|
Ok, all comments from today addressed... |
Preselections: